import http from '@/api';

// 获取路由列表
export const getRouterList = () => {
  return http.post('/adminApi/router/list');
};
// 新增路由
export const addRouter = data => {
  return http.post('/adminApi/router/add', data);
};
// 编辑路由
export const editRouter = data => {
  return http.post('/adminApi/router/edit', data);
};
// 删除路由
export const deleteRouter = data => {
  return http.post('/adminApi/router/delete', data);
};

// 获取router详情
export const getRouterDetail = data => {
  return http.post('/adminApi/router/detail', data);
};

// 获取router菜单节点
export const getRouterMenu = () => {
  return http.post('/adminApi/router/allMenu');
};
